
public class Test implements Runnable{

	private Directory a,b;
	private FileSysUtil fileUtil;
	//private FileSysUtil_Rev fileUtil;
	public Test() {
	
		a = new Directory("a");
		b = new Directory("b");
		fileUtil = new FileSysUtil();
//		fileUtil = new FileSysUtil_Rev();
	}
	public static void main(String[] args) {
		Test test = new Test();
		Thread[] hilos = new Thread[100];
		for (int i = 0; i < hilos.length; i++) {
			hilos[i] = new Thread(test);
			hilos[i].start();
		}
		
	}

	private static int cont = 0;
	@Override
	public void run() {

		for (int i = 0; i < 10 ; i++) {
			cont ++;
		//	System.out.println(""+cont);
			if (i%2 == 0) {
				fileUtil.moveContents(a, b);
			}
			else {
				fileUtil.moveContents(b, a);
			}
		}
	}

}
